import axios from 'axios'

const defaultConfig = {
    baseURL : "",
    timeout:10000,
}
const http = axios.create({
   baseURL: defaultConfig.baseURL,
   timeout: defaultConfig.timeout,
});

const requestInterceptor = config => {
    console.log("+===config",config);
}

const responseInterceptor = response=> {
    console.log("=response=",response)
}
http.interceptors.request.use(requestInterceptor);
http.interceptors.response.use(responseInterceptor);


export default http;